2016年12月14日 — I experimented a bit and found out that Windows Git commands actually need UNIX variables like LC_ALL in order to display Polish (or other UTF-8 characters) ...
2023年5月18日 — I have a C project (ISO 8859-1 encoded) in the STM32CubeMX IDE, and I want to add Git log information in a header file in order to use those in my software.
If you want to examine a commit and its stored encoding, you can use the following command to inspect it: $ git log -1 --pretty='format:%h: %B (Encoding: %e)' ...
Global setting for repositories log encoding is useless for git git has config option i18n.logoutputencoding if it is empty, then log encoding is UTF-8
Lack of this header implies that the commit log message is encoded in UTF-8. git log, git show, git blame and friends look at the encoding header of a commit ...